<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<ul>
          <li class="titleonly">
          <img src="${ctxPath}/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;用户管理
</li>
        </ul>
        <ul>
<form id="tableForm" name="tableForm" action="users.do" method="Post"> 
        <table width="700" border="0" cellspacing="0" cellpadding="0" class="dd">
  <tr>
    <td colspan="5" ><a href="editUser.do"><img src="${ctxPath}/image/plus.gif" />&nbsp;&nbsp;添加会户</a></td>
  </tr>
  <tr>
    <td colspan="5" style="font-size:12px; color:#F03; font-weight:bold">功能介绍:用户查找</td>
    </tr>
  <tr>
    <td>用户姓名：</td>
    <td><input type="text" name="Q_fullname_S_LK" value="${param['Q_fullname_S_LK']}" class="inputbox120"/></td>
    <td></td>
    <td>状态：</td>
    <td>
		<select id="status" name="Q_status_SN_EQ" class="inputbox130">
		  <option value="">全部</option>
		  <option value="1">有效</option>
		  <option value="2">无效</option>
		 </select>
		 <script type="text/javascript">
		 document.getElementById("status").value="${param['Q_status_SN_EQ']}";
		 </script> 
						 </td>
  </tr>
  <tr>
    <td colspan="5" style="text-align:center">
    <input name="query" type="submit" class="inputsubmit" value="查询" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      
    <input name="reset" type="button" class="inputsubmit" value="重置" onClick="this.form.reset();"/></td>
  </tr>
</table>
</form>
 </ul>
    
	<ul><li class="titleonly"><img src="${ctxPath}/image/dot.gif" width="15" height="16" class="dot" />&gt;&gt;用户列表</li></ul>
	<ul>
	<li>
	<c:set var="checkAll">
			<input type="checkbox" name="ckAll" onClick="checkAll(this,'userId');"/>
	</c:set>
 	<div id="div-data">
   	<display:table name="users" sort="external" pagesize="${users.objectsPerPage}"
    	cellpadding="0" cellspacing="0" style="width:100%;" export="false" 
    	id="userItem" partialList="true" size="${users.fullListSize}" requestURI="users.do">
    	<display:column title="${checkAll}" media="html" style="width:8px;align:center">
	  		<input type="checkbox" name="userId" value="${userItem.userId}">
	  	</display:column>
	<display:column property="username" titleKey="user.username" sortName="username" sortable="true" class="tableinfo center" />  
	<display:column property="fullname" titleKey="user.fullname" sortName="fullname" sortable="true" class="tableinfo center" />  
	<display:column property="createTime" titleKey="user.createTime" sortName="createTime" sortable="true" class="tableinfo center" />  
		
		<display:column media="html" title="管理" style="width:170px" class="tableinfo center" >
			<a href="editUser.do?userId=${userItem.userId}" class="update"><img src="${ctxPath}/image/amend.gif" />&nbsp;&nbsp;修改</a>
			<a href="users.do?cmd=viewDetail&userId=${userItem.userId}" class="view"  ><img src="${ctxPath}/image/open.gif" />&nbsp;&nbsp;查看</a>
			<a href="#" class="delete" onclick="delUser('${userItem.userId}')" ><img src="${ctxPath}/image/big_del.gif" />&nbsp;&nbsp;删除</a>
		</display:column>
	 </display:table>	
	 </div>
	 </li>
	</ul>
	
	<script type="text/javascript">
		highlightTableRows('userItem');
		function delUser(userId)
		{
			confirm("是否确定删除此用户")
			{
				window.location.href="users.do?cmd=delete&userId="+userId;
			}
		}
	</script>


